package com.ruoyi.common.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 流程业务标识枚举
 */
@Getter
@RequiredArgsConstructor
public enum BusinessFlag {

    CO_OP_HAN("XIEPAIHANBIAOSHI", "协拍函流程"),
    WC_PATENT("WCPATENT", "剧本备案申请"),
    WC_CHANGE_PATENT("WCCHANGEPATENT", "剧本变更备案"),
    WC_CONTENT_EXAMINE("WCCONTENTEXAMINE", "影片内容审查"),
    FY_PROJECT("FYPROJECT", "扶垚计划项目申报"),
    ;
    private final String value;
    private final String description;

    public static String getLabelByValue(String value) {
        for (BusinessFlag e : BusinessFlag.values()) {
            if (e.getValue().equals(value)) {
                return e.getDescription();
            }
        }
        return null;
    }
}
